// import { cc.vv.platform } from "./cc.vv.platform";
// import { cc.vv.GLDefine } from "./cc.vv.GLDefine";
// import { cc.vv.GLNetDataModel } from "./../lib/cc.vv.GLNetDataModel";
class GLConfig {
	isInit = false; //是否初始化
	curVersion = "";
	game_debug_state: number = 0; //cc.vv.GLDefine.EDebugType.DEBUG;

	agent_url = "http://192.168.0.132:8310/";//内网
	// agent_url = "https://dlproxy.eyo5.com/";//外网
	//exchangeTimes = 5; //每天兑换次数
	platform = "FPJ";//当前平台
	isIosExaminePackage: boolean = false;//当前ios包是否是提审包标记,只有提审才能改成true.
	local_version = ""; //当前版本号;本地和热更目录对比过后的;
	getIOScheckhot = false;  //检查 下面的hotupd字段是否生效    如果这个字段是true  hotupd不生效   该字段的数值从安装包原生端获取。不能更改
	hotupd = false;
	hotUpdateURL: "";//string = "192.168.0.113";////"cdn2.lmfurn.com"; //"192.168.0.174:9006"; //"192.168.146.13",//"http://29d3n.cn/JY_ClientRes" ;/

	AppVestaccesskey = "62308222f568dd554cc5574d9e62ecf4";
	AppVestuuid = "+DhnJE0UwsZEgvxDxaQw1yRfglhEbOVmXkC14vCDuJ26tQwbLSlcHnzQGL9FNcy8Ty7usHa9mAP6FOGbz/NWp4Myy4ykAvKnf/oFs6Ra79fqluZ7Y+11+U2Fguw4yeVEvHAo";
	qqappid = "xxxxxxssss";
	wxappid = "wx817ab948bdf11ea5"
	wxsecrete = "842d3ccddad18b2c8d2fb5d12268ce2c"
	CNDMsg = ["yufabu", "changcheng"];
	resPath = "FPJ_ClientRes";
	storageImgPath = "";

	wechatLoginFaildTimes = 0;
	re_connect_num = 0;
	hallmusicpath = [
		"/Hall/sound/MusicEx_Normal",
	];

	hallState = {
		hall: 0,
		ag: 1
	};
	loginType = {
		"wxlogin": true, //微信登录
		"qqlogin": false, //qq登录
		"vistorlogin": true,//游客登录
		"accountlogin": true
	}//账号/手机号登录]

	IOSUIDeviceOrientation = {
		UIDeviceOrientationUnknown: 0,
		UIDeviceOrientationPortrait: 1,            // Device oriented vertically, home button on the bottom
		UIDeviceOrientationPortraitUpsideDown: 2,  // Device oriented vertically, home button on the top
		UIDeviceOrientationLandscapeLeft: 3,       // Device oriented horizontally, home button on the right
		UIDeviceOrientationLandscapeRight: 4,      // Device oriented horizontally, home button on the left
		UIDeviceOrientationFaceUp: 5,              // Device oriented flat, face up
		UIDeviceOrientationFaceDown: 6            // Device oriented flat, face down
	};

	currentOrientation = 0; //默认是竖屏

	//备用需要改获取字段名 http://ip.ws.126.net/ipquery?ip=
	//备用需要改获取方式 http://pv.sohu.com/cityjson?ie=utf-8
	//http://whois.pconline.com.cn/ipJson.jsp?ip=
	//百度接口 https://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv/api.php?query=
	IPAdressUrl = "https://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv/api.php?query="; // ip转换接口

	//? 客服
	customer_url =
		"https://chat.rocketx.online/chat?secret=93325ede234e6742c43b382d7a4a3c6f22b61aca52227d1f7cc8dd3971495995";

	//?官网（大版本更新）
	gm_url = ["https://www.baidu.com", ""]; //["http://5l8630.cn/index.html", "http://mtbpjf.cn/"],//"http://bw575.cn/"],//mtbpjf.cn

	VIPMgrCfgURL = "http://client.1baf1.com/api/list_vip_kf";
	java_script_error_url = "http://client.1baf1.com/api/save_err_des";

	OSS_ENDPOINT = "https://oss-accelerate.aliyuncs.com";
	OSS_BUCKET_NAME = "app-liaotian-store";
	OSS_ACCESSKEYID = "LTAI4GA5jDZeCGYgZkxzHh2p";
	OSS_ACCESSKEYSECRET = "qGub0TR7gyEGuQJLExUh8hZ6ywkCxR";

	storageImgWebPath = "http://192.168.0.119:9006/upload/"; //图片远端地址

	AGUrl = "http://cdn2.lmfurn.com/webView/index.html";

	//login
	serverPanel_path = "Login/ServerList/ServerListPanel";

	WXAlert_path = "Login/WXAlert";


	// phoneLogin_path = "Login/PhoneLogin/PhoneLogin";
	// forgetPsw_path = "Login/ForgetPsw/ForgetPsw";
	// changeAccount_path = "Login/ChangeAccount/ChangeAccount";

	// //common
	tips_path = "Common/Tips/Tips";
	alert_path = "Common/Alert/Alert";
	alert1_path = "Common/Alert/Alert1";
	waiting_path = "Common/Waiting/Waiting";
	KeyPad_path = "Common/KeyPad/KeyPad"; //数字键盘
	reconnect_path = "Common/Reconnect/Reconnect";
	notEnoughCoin_path = "Common/NotEnoughCoin/NotEnoughCoin";//金币不足

	Feedback_path = "Hall/Feedback/Feedback"; //你提我改功能

	Service_path = "Hall/Service/Service"; //客服功能

	SettingAudio_path = "Hall/SettingAudio/SettingAudio"; //设置功能

	Record_path = "Hall/Record/Record"; //战绩

	SafeBank_path = "Hall/SafeBank/SafeBank"; //保险箱

	Gift_path = "Hall/Gift/Gift"; //注册送金
	ChangeHead_path = "Hall/ChangeHead/ChangeHead"; //切换头像

	IdentifyView_path = "Hall/IdentifyView/IdentifyView"; //绑定手机号

	GiftConfirm_path = "Hall/GiftConfirm/GiftConfirm"; //注册送金成功界面

	Exchange_path = "Hall/Exchange/Exchange/Exchange"; //提款功能
	ExchangeBind_path = "Hall/Exchange/ExchangeBind/ExchangeBind"; //绑定支付宝
	ExchangeBindBank_path = "Hall/Exchange/ExchangeBindBank/ExchangeBindBank"; //绑定银行卡
	ExchangeBindConfirm_path = "Hall/Exchange/ExchangeBindConfirm/ExchangeBindConfirm"; //绑定支付宝或者银行卡 确认界面
	ExchangeRecord_path = "Hall/Exchange/Exchange/ExchangeRecord";
	Mail_path = "Hall/Mail/Mail"; //邮件消息
	MailDetail_path = "Hall/Mail/MailDetail"; //邮件详情
	Notice_path = "Hall/Notice/Notice"; //通知

	//代理
	Agency_path = "Hall/Agency/Agency"; //全民代理 是代理
	AgencyLingQuYongJin_path = "Hall/Agency/WoDeTuiGuang/LingQuYongJin"; //领取佣金
	AgencyLingQuJiLu_path = "Hall/Agency/WoDeTuiGuang/LingQuJiLu"; //领取记录
	AgencyFanYongJinE_path = "Hall/Agency/FanYongJinE/FanYongJinE"; //返佣金额
	AgencyDetails_path = "Hall/Agency/AgencyDetails/AgencyDetails"; //详细信息
	AgencyBind_path = "Hall/Agency/AgencyBind/AgencyBind"; //全民代理 不是代理

	AllAgencyAchievementorigin_path = "Hall/Agency/AllAgencyAchievementorigin";
	AllAgencyreceive_path = "Hall/Agency/AllAgencyreceive";
	AllAgencySave_path = "Hall/Agency/AllAgencySave";

	room_path = "Hall/RoomSelect/RoomSelect";
	// shzRoom_path = "Hall/RoomSelect/RoomSelect";
	sgjRoom_path = "Hall/RoomSelect/SgjSeven/SgjSevenRoomSelect";
	shzRoom_path = "Hall/RoomSelect/Shz/ShzRoomSelect";
	selfInfo_path = "Hall/SelfInfo/SelfInfo";
	recharge_path = "Hall/Recharge/Recharge";
	YHKXXChongZhiXiangQing_path = "Hall/Recharge/RechargeYHKXXChongZhiXiangQing";
	reportAward_path = "Hall/Recharge/ReportAward/ReportAward";
	realCard_path = "Hall/Recharge/RealCard/RealCard";
	orderInquiry_path = "Hall/Recharge/OrderInquiry/OrderInquiry";


	//游戏内部二级界面和弹窗路径
	help_path = "Game/Base/BaseModule/Help/Help";
	playerList_path = "Game/Base/BaseModule/PlayerList/PlayerList";
	bankerList_path = "Game/Base/BaseModule/BankerList/BankerList";

	//游戏loading界面
	birdsLoad_path = "Game/BIRDS/prefab/birdsLoading/BirdsLoading"
	// shzLoad_Path = "Game/SHZ/prefabs/secondPanel/shzLoading/ShzLoading";

	//抽奖
	luckDraw_path = "Hall/LuckDraw/LuckDraw";
	//邀请有礼
	yaoQing_path = "Hall/YaoQing/YaoQing";
	YQPlayerList_path = "Hall/YaoQing/YQPlayerList";
	YQShare_path = "Hall/YaoQing/YQShare";

	//领奖
	receiveCoin_path = "Hall/ReceiveCoin/ReceiveCoin";

	//抢庄牛牛房间列表
	NNRoom_path = "Hall/RoomSelect/NNRoom/NNRoom";
	//牛牛玩法介绍
	NNHelp_path = "Hall/RoomSelect/NNHelp/NNHelp";
	//加入房间
	addRoom_path = "Hall/RoomSelect/AddRoom/AddRoom";


	//大红包
	da_hong_bao_path = 'Hall/HallUI/HallOpenRedPacket/HallOpenRedPacket';



	// //领奖
	// receiveCoin_path = "Hall/ReceiveCoin/ReceiveCoin";

	// //抢庄牛牛房间列表
	// NNRoom_path = "Hall/RoomSelect/NNRoom/NNRoom";
	// //牛牛玩法介绍
	// NNHelp_path = "Hall/RoomSelect/NNHelp/NNHelp";
	// //加入房间
	// addRoom_path = "Hall/RoomSelect/AddRoom/AddRoom";
	// //房间详情
	// roomDetails_path = "Hall/RoomSelect/RoomDetails/RoomDetails";




	//搜索聊天界面
	searchFriend_path = "Modules/Chat/SearchFriendView";
	//聊天界面
	chat_path = "Modules/Chat/Chat";
	FriendListAddView_path = 'Modules/Chat/Prefab/FriendListAddView';
	showBigPic_path = "Modules/Chat/Prefab/showBigPic"
	//聊天界面
	deleteMsg_path = "Modules/Chat/Prefab/deletMsg";
	notSendMsg_path = 'Modules/Chat/Prefab/notSendMsg';
	SendLuckyPacketView_path = "Modules/Chat/Prefab/SendLuckyPacket/SendLuckyPacketView";
	PacketInfoView_path = "Modules/Chat/Prefab/PacketInfo/PacketInfoView";
	PacketDetailView_path = "Modules/Chat/Prefab/PacketDetail/PacketDetailView";
	//通讯录
	createGroup_path = 'Modules/AddressBook/CreateGroup/CreateGroupView';
	searchGroup_path = 'Modules/AddressBook/GroupSearch/GroupSearchView';
	GroupDetailView_path = 'Modules/AddressBook/GroupDetail/GroupDetailView';
	addFriendView_path = 'Modules/AddressBook/AddFriend/AddFriendView';
	userDetailView_path = 'Modules/AddressBook/UserDetail/UserDetailView';
	chatDetailView_path = 'Modules/AddressBook/UserDetail/ChatDetailView';
	groupIntroductionView_path = 'Modules/AddressBook/GroupIntroductionView/GroupIntroductionView';
	allMemberView_path = 'Modules/AddressBook/GroupDetail/AllMemberView/AllMemberView';
	TongXunLuHaoYouView_path = 'Modules/AddressBook/TongXunLuHaoYou/TongXunLuHaoYouView';
	GroupManagerControlView_path = 'Modules/AddressBook/GroupDetail/GroupManagerControlView/GroupManagerControlView';
	AddMemberView_path = "Modules/AddressBook/GroupDetail/AddMemberView";
	DeleteMemberView_path = "Modules/AddressBook/GroupDetail/DeleteMemberView";
	AddManagerView_path = "Modules/AddressBook/GroupDetail/GroupManagerControlView/AddManagerView";
	DeleteManagerView_path = "Modules/AddressBook/GroupDetail/GroupManagerControlView/DeleteManagerView";
	AddSilencerView_path = "Modules/AddressBook/GroupDetail/AddSilencerView/AddSilencerView";
	GroupMemberSilenceView_path = "Modules/AddressBook/GroupDetail/GroupMemberSilenceView/GroupMemberSilenceView";
	GroupVerifyView_path = "Modules/AddressBook/GroupVerify/GroupVerifyView";
	NewFriendView_path = "Modules/AddressBook/NewFriend/NewFriendView";
	confirmExtendView_path = "Modules/AddressBook/GroupManager/confirmExtendView";
	CacheKey = 'org.cocos2dx.fanpaiji';
	//代理界面
	agent_path = 'Modules/Agent/AgentView';
	applyForAgent_path = 'Modules/Agent/ApplyForAgentView';
	clubOwnerEarnView_path = 'Modules/Agent/ClubOwnerEarn/ClubOwnerEarnView';
	clubOwnerEarnDetailView_path = 'Modules/Agent/ClubOwnerEarn/ClubOwnerEarnDetailView';
	// ErWeiMa_path = 'Modules/Agent/ErWeiMa/ErWeiMa';

	//俱乐部
	club_path = "Modules/Club/Club";
	noClub_path = "Modules/Club/NoClub";
	clubList_path = "Modules/Club/ClubList";
	clubPopup_path = "Modules/Club/ClubPopup";
	applyAuthority_path = "Modules/Club/ApplyAuthority/ApplyAuthority";
	applyState_path = "Modules/Club/ApplyAuthority/ApplyState";
	scaleChoose_path = "Modules/Club/ApplyAuthority/ScaleChoose";
	addressChoose_path = "Modules/Club/ApplyAuthority/AddressChoose";
	createClub_path = "Modules/Club/CreateClub/CreateClub";
	gameList_path = "Modules/Club/GameList/GameList";
	roomSelect_path = "Modules/Club/GameHall/RoomSelect/RoomSelect";
	gameHall_path = "Modules/Club/GameHall/GameHall";
	createRoom_path = "Modules/Club/GameHall/CreateRoom/CreateRoom";
	rulePullChoose_path = "Modules/Club/GameHall/CreateRoom/RulePullChoose";
	subRuleChoose_path = "Modules/Club/GameHall/CreateRoom/SubRuleChoose";
	gameRule_path = "Modules/Club/GameHall/GameRule/GameRule";


	gameSetting_path = "Modules/Club/GameHall/GameSetting/GameSetting";
	gameSelect_path = "Modules/Club/GameHall/GameSelect/GameSelect";

	//keyboard
	keyboard_path = "Modules/Club/GameHall/Keyboard/Keyboard";

	//房间详情
	roomDetails_path = "Modules/Club/GameHall/RoomSelect/RoomDetails/RoomDetails";
	roomDetailsRule_path = "Modules/Club/GameHall/RoomSelect/RoomDetails/RoomDetailsRule";



	//个人中心
	chongZhi_path = 'Modules/Personal/ChongZhi/ChongZhiView';
	ChongTiJiLuView_path = 'Modules/Personal/ChongZhi/ChongTiJiLuView';
	ChongZhiOrderView_path = 'Modules/Personal/ChongZhi/ChongZhiOrderView';
	tiXian_path = 'Modules/Personal/TiXian/TiXianView';
	ChooseTypeView_path = 'Modules/Personal/TiXian/ChooseTypeView';
	ChangePayTypeView_path = 'Modules/Personal/TiXian/ChangePayTypeView';
	TKSMView_path = "Modules/Personal/TiXian/TKSMView";
	transfer_path = 'Modules/Personal/Transfer/TransferView';
	VerifyTransPassView_path = 'Modules/Personal/Transfer/VerifyTransPassView';
	MyWalletClearHistoryDataView_path = "Modules/Personal/MyWallet/MyWalletClearHistoryData/MyWalletClearHistoryDataView";
	MyWalletViewDetailView_path = "Modules/Personal/MyWallet/MyWalletViewDetailView";

	SealCoin_ExpDetail_Path = "Modules/Personal/MyWallet/SealCoin/SealCoin_ExpDetail/SealCoin_ExpDetail"
	SealCoin_VipRights_Path = "Modules/Personal/MyWallet/SealCoin/SealCoin_VipRights/SealCoin_VipRights"
	SealCoin_ChangeRecord_Path = "Modules/Personal/MyWallet/SealCoin/SealCoin_ChangeRecord/SealCoin_ChangeRecord"
	SealCoin_UnsealDetail_Path = "Modules/Personal/MyWallet/SealCoin/SealCoin_UnsealDetail/SealCoin_UnsealDetail"
	SealCoin_UD_S_Item_Detail_Path = "Modules/Personal/MyWallet/SealCoin/SealCoin_UnsealDetail/SealCoin_UD_Search/SealCoin_UD_S_Item/SealCoin_UD_S_Item_Detail/SealCoin_UD_S_Item_Detail"
	SealCoin_Help_Path = "Modules/Personal/MyWallet/SealCoin/SealCoin_Help/SealCoin_Help"
	SealCoin_Path = "Modules/Personal/MyWallet/SealCoin/SealCoin"
	//活动中心:

	PromotionCenter_Path = "Modules/Promotion/PromotionCenter/PromotionCenter"



	serviceCenter_path = 'Modules/Personal/Service/ServiceCenterView';
	service_path = 'Modules/Personal/Service/ServiceView';
	feedback_path = 'Modules/Personal/Service/Feedback/Feedback';
	feedbackHistory_path = 'Modules/Personal/Service/Feedback/FeedbackHistory/FeedbackHistory';
	chongZhiInfoItem_path = 'Modules/Personal/Service/ChongZhiInfoItem';
	commonView_path = 'Modules/Personal/Service/CommonView';
	questionDetail_path = 'Modules/Personal/Service/QuestionDetailView';
	set_path = 'Modules/Personal/Set/SetView';
	newMessageSet_path = 'Modules/Personal/Set/NewMessageSetView';
	share_path = 'Modules/Personal/PersonalInfoView/QrCodeView';
	inviteView_path = 'Modules/Personal/PersonalView/InviteView';

	renZhengAliPay_path = 'Modules/Personal/MyWallet/AliPay/RenZheng/RenZhengView';
	myAliPay_path = 'Modules/Personal/MyWallet/AliPay/MyAliPay/MyAliPayView';
	BindBankView_path = 'Modules/Personal/MyWallet/Bank/BindBankView';

	setTransPass_path = 'Modules/Personal/PersonalView/publicView/TransPass/SetTransPassView';
	PhoneVerify_path = 'Modules/Personal/PersonalView/publicView/PhoneVerify/PhoneVerifyView_pb';
	BindPhoneView_path = 'Modules/Personal/PersonalInfoView/BindPhoneView';

	confirm_path = 'Modules/Personal/PersonalView/publicView/Confirm/confirmView_pb';
	SetSomethingView_path = 'Modules/Personal/PersonalView/publicView/SetSomethingView/SetSomethingView';
	chooseFriend_path = 'Modules/Personal/PersonalView/publicView/ChooseFriendView/ChooseFriendView';

	viewLoadingView_path = 'Modules/Personal/PersonalView/publicView/ViewLoadingView/ViewLoadingView';////Common/Waiting/Waiting
	collectionView_path = 'Modules/Personal/Collection/CollectionView';
	collectDeatailView_path = 'Modules/Personal/Collection/CollectionDetailView';
	safeBankPSNView_path = 'Modules/Personal/SafeBankPSN/SafeBankPSNView';
	AccountSafeView_path = 'Modules/Personal/Set/AccountSafeView';
	InviteToGameView_path = 'Modules/Personal/InviteToGame/InviteToGameView';
	SendInviteInfoView_path = 'Modules/Personal/InviteToGame/SendInviteInfoView';
	ShopView_path = 'Modules/Personal/Shop/ShopView';
	uiSelectInfo = 'Login/uiSelectInfo/uiSelectInfo';
	uiSelectHead = 'Login/uiSelectInfo/uiSelectHead';
	uiAutoCreateRoom = 'Modules/Club/AutoCreateRoom/UIAutoCreateRoom';
	uiResetLoginPassword = "Modules/Personal/Set/uiResetLoginPassword"

	//hotupdate
	gameHotUpdate1_path = 'Common/HotUpdate/GamehotUpdata1';

	//俱乐部战绩
	GHRD_RecordDetails_Path = "Modules/Club/GameHall/GameHallRecordDetails/GHRD_RecordDetails/GHRD_RecordDetails";




	/////dwc预支体
	dwc_RegisterPanel_path = 'Login/RegisterPanel';

	dwc_PhoneLogin_path = 'Login/LoginPhone';

	//保险箱
	DWC_SafeBankView_path = "HallDWC/DWC_SafeBank/DWC_SafeBankView";
	//商城
	DWC_Shop_path = "HallDWC/DWC_Shop/DWC_Shop";
	//兑换码
	DWC_ExchangeCode_path = "HallDWC/DWC_ExchangeCode/DWC_ExchangeCode";
	//个人信息
	DWC_PersonalInfo_path = "HallDWC/DWC_PersonalInfo/DWC_PersonalInfo";
	//修改头像
	DWC_ChangeHead_path = "HallDWC/DWC_ChangeHead/DWC_ChangeHead";
	//修改头昵称
	DWC_ChangeNick_path = "HallDWC/DWC_ChangeNick/DWC_ChangeNick";
	//修改密码
	DWC_ChangePW_path = "HallDWC/DWC_ChangePW/DWC_ChangePW";
	//绑定手机
	DWC_BindPhone_path = "HallDWC/DWC_BindPhone/DWC_BindPhone";
	//复杂聊天界面
	DWC_DetailChat_path = "HallDWC/DWC_DetailChat/DWC_DetailChat";
	//绑定密码
	DWC_BindPasswrod_path = "HallDWC/DWC_BindPassword/DWC_BindPassword";
	//好友列表
	DWC_FriendList_path = "HallDWC/DWC_FriendList/DWC_FriendList";
	//简单聊天
	Dwc_SimpleChat_path = "HallDWC/Dwc_SimpleChat/Dwc_SimpleChat";
	//房间管理
	DWC_RoomManager_path = "HallDWC/DWC_RoomManager/DWC_RoomManager";
	//赠送
	DWC_ZengSong_path = "HallDWC/DWC_ZengSong/DWC_ZengSong";
	//口令
	DWC_KouLing_path = "HallDWC/DWC_KouLing/DWC_KouLing";

	dwc_LoginPanel_path = 'Login/LoginPanel';
	Hall_Setting_Path = "Hall/Hall_Setting/Hall_Setting"
	Hall_DailySingIn_Path = "HallDWC/Hall_DailySingIn/Hall_DailySingIn"
	Hall_GameRoomList_Path = "HallDWC/Hall_Game/Hall_GameRoomList/Hall_GameRoomList"
	Hall_GameList_Path = "HallDWC/Hall_Game/Hall_GameList/Hall_GameList"

	//保险箱
	DWC_Message_path = "HallDWC/DWC_Message/DWC_MessageView";

	//翻牌机
	FPJ_TableView = "Hall/FPJTableView/FPJTableView";
	//翻牌机
	FPJ_SmallTableView = "Hall/FPJTableView/SmallFPJTableView";
	
	//翻牌机
	FPJ_BindShangJi = "Hall/BindShangJi/BindShangJi";
	//记录

	marqueePos = {
		//跑马灯位置
		Hall: { x: 0, y: 240 },
		BJL: { x: 0, y: 228 }, //百家乐
		HundredNN: { x: 0, y: 210 },//百人牛牛
		BIRDS: { x: 0, y: 276 },//飞禽走兽
		LHD: { x: 0, y: 244 },//龙虎斗
		TTZ: { x: 0, y: 245 },//推筒子
		ZJH: { x: 0, y: 272 },//炸金花
		ERMJ: { x: 0, y: 258 },//二人麻将
		TBNN: { x: 0, y: 200 },//通比牛牛
		QZNN: { x: 0, y: 200 },//抢庄牛牛
		SJNN: { x: 0, y: 200 },//随机牛牛
		BMW: { x: 0, y: 350 }, //奔驰宝马
		QHB: { x: 0, y: 195 }, //抢红包
		LB_SG777: { x: 0, y: 279 }, //水果777
		LB_SHZ: { x: 0, y: 272 }, //水浒传
		LB_SGJ: { x: 0, y: 247 }, //小玛丽
		NWNN: { x: 0, y: 345 },//牛王牛牛
		LHJ: { x: 0, y: 345 },//金玉满堂
		ZZMJ: { x: 0, y: 345 },//郑州麻将
		XZMJ: { x: 0, y: 345 },//血战麻将
		KFMJ: { x: 0, y: 345 },//开封麻将
		SRLF: { x: 0, y: 345 },//三人两房
		HNMJ: { x: 0, y: 345 },//河南推倒胡
		LYMJ: { x: 0, y: 345 },//洛阳杠次麻将
		XLMJ: { x: 0, y: 345 },//血流麻将

		HBZZMJ: { x: 0, y: 345 },//转转麻将
		GYZJMJ: { x: 0, y: 345 },//贵阳捉鸡麻将
		HBKWX: { x: 0, y: 345 },//卡五星
		CSMJ: { x: 0, y: 345 },//长沙麻将
		WHMJ: { x: 0, y: 345 },//武汉麻将
		NJMJ: { x: 0, y: 345 },//内江麻将
		HEBMJ: { x: 0, y: 345 },//哈尔滨麻将
		SYMJ: { x: 0, y: 345 },//沈阳麻将
		HBSJZMJ: { x: 0, y: 345 },//石家庄麻将
		AYMJ: { x: 0, y: 345 },//安阳麻将
		JZMJ: { x: 0, y: 345 },//焦作麻将

		PDK: { x: 0, y: 345 },//跑的快--
		DDZ: { x: 0, y: 345 },//斗地主--
		SG: { x: 0, y: 345 },//三公
		SSS: { x: 0, y: 345 },//十三水       
		ESYD: { x: 0, y: 345 },// 二十一点 
		QZPJ: { x: 0, y: 345 }, // 抢庄牌九
		FISH: { x: 0, y: 345 }, //捕鱼     
		DZPK: { x: 0, y: 345 }, //德州扑克
		TB: { x: 0, y: 345 }, //骰宝 
		SLWH: { x: 0, y: 345 },   //森林舞会--



		// RoomSelect: { x: 0, y: 240 },//{ x: 0, y: 255 }, //{ x: -323, y: 275 },
		// SafeBank: { x: 0, y: 240 },//{ x: 0, y: 265 }, //{ x: 150, y: 278 },
		// Recharge: { x: 0, y: 240 },//{ x: 0, y: 265 }, //{ x: 150, y: 278 },
		// Exchange: { x: 0, y: 240 },//{ x: 0, y: 265 }, //{ x: 150, y: 269 },
		// SelfInfo: { x: 0, y: 240 },//{ x: 0, y: 265 }, //{ x: 150, y: 278 },
		// Mail: { x: 0, y: 240 },//{ x: 0, y: 265 }, //{ x: 150, y: 269 },
		// Service: { x: 0, y: 240 },//{ x: 0, y: 265 } //{ x: 150, y: 278 },
	};

	gameHallUIType = {
		huiHua: 0,  //会话
		daTing: 1,  //游戏大厅
		zhanJi: 2  //战绩
	};
	gameHallUITypeList = [this.gameHallUIType.huiHua, this.gameHallUIType.daTing, this.gameHallUIType.zhanJi]
	gameHallUITypeText = ["会话", "游戏大厅", "战绩"];

	isConnected = false;



	init() {
		this.local_version = "";
		this.wechatLoginFaildTimes = 0;
		this.isConnected = false;
		//  var data = require("cc.vv.platform");

		this.game_debug_state = cc.vv.platform.DEBUG_TYPE;

		if (this.game_debug_state === cc.vv.GLDefine.EDebugType.RELEASE) {
			console.log = function () { };
		}
		cc.log = console.log;

		if (cc.sys.isNative) {
			this.storageImgPath = jsb.fileUtils.getWritablePath() + 'img/';//聊天图片存放路径
		}
		console.log("_____init GlConfig");

		this.re_connect_num = 0;
	}

	setLocalVersion(version) {
		console.log("_______local_version = " + version);
		this.local_version = version || this.local_version;
		// cc.sys.localStorage.setItem('local_version', version);
	}

	getLocalVersion() {
		return this.local_version;
	}

	getMarqueePos(name) {
		var _pos = {
			x: 0,
			y: 0
		};
		_pos = this.marqueePos[name];
		return _pos;
	}

	getUrl(urlType) {

		return "";
	}
	getIPAdressUrl() {
		return this.IPAdressUrl;
	}

	setGMURL(url) {
		console.log("GM_url = " + url);
		if (!url || url.indexOf("http") < 0) {
			url = "https://" + url;
		}

		if (cc.vv.GLNetDataModel.versionType == 1) {
			this.gm_url[1] = url;
		} else {
			this.gm_url[0] = url;
		}
	}
	getGM_url() {
		var _url = this.gm_url[0];
		if (cc.vv.GLNetDataModel.versionType == 1) {
			_url = this.gm_url[1];
		}
		return _url;
	}

	setHotUpdateURL(url) {
		console.log("HotUpdate_url = " + url);

		this.hotUpdateURL = url;
	}
	setioshot(flag) {
		this.hotupd = flag;
	}

}



export let glConfig: GLConfig = new GLConfig();
